from typing import List, Tuple

import pytest

from cases.conftest import init_driver
from config.config import DATA_PATH
from modules.agree_protocol_action import AgreeProtocolAction
from modules.login_action import loginAction
from utils.ymal_reader import YamlReader


@pytest.fixture(scope="class", autouse=True)
def login_setup_teardown(init_driver) -> None:
    # 获取driver
    webdriver = init_driver
    protocol_action = AgreeProtocolAction()
    protocol_action.agreeProtocal(webdriver)
    action = loginAction(webdriver)
    action.login_prepare()
    yield
    action.login_after()


